package cn.tedu.blackhorse.security;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

public class AdminDetails extends User {
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public AdminDetails(String username, String password, boolean enabled, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, enabled, true,true,true, authorities);
    }

    @Override
    public String toString() {
        return "AdminDetails{" +
                "id=" + id +", "+super.toString()+
                '}';
    }
}
